/*
Author      : Pratibh Prakash
Created Date: 12 March-10 
Modified    :
Description : Class contains method to add to delay in seconds. 
*/
public class Delay {
    public static void sleep(Integer seconds){
        datetime curDateTime = datetime.now();
        Integer sec = curDateTime.second();
        while (((datetime.now()).second()-sec)<seconds){
        }
    }
    
    private static testMethod void testDelay(){
    	Delay.sleep(2);
    }
}